package com.jiangaifeng.blog.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jiangaifeng.common.annotation.Excel;
import com.jiangaifeng.common.core.domain.BaseEntity;

/**
 * 照片对象 blog_photo
 * 
 * @author jiangaifeng
 * @date 2025-02-13
 */
public class BlogPhoto extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 照片的url */
    @Excel(name = "照片的url")
    private String url1;

    /** 照片的缩略图url */
    @Excel(name = "照片的缩略图url")
    private String url2;

    /** 照片标题 */
    @Excel(name = "照片标题")
    private String title;

    /** 照片描述 */
    @Excel(name = "照片描述")
    private String description;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUrl1(String url1) 
    {
        this.url1 = url1;
    }

    public String getUrl1() 
    {
        return url1;
    }
    public void setUrl2(String url2) 
    {
        this.url2 = url2;
    }

    public String getUrl2() 
    {
        return url2;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("url1", getUrl1())
            .append("url2", getUrl2())
            .append("title", getTitle())
            .append("description", getDescription())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
